package model

import (
	"time"
)

type LinkageFailureSucces struct {
	LinkageFailureSuccesId int64 `xorm:"pk autoincr"`
	FailureSuccesState int
	CustomerId int64
	CustomerName string
	LinkageTaskId int64
	CreatedAt time.Time
  	UpdatedAt time.Time
 }

func (lkfs *LinkageFailureSucces)InsertLinkageFailureSucces(lkfsv *LinkageFailureSucces) map[string]interface{}{
	x.Insert(lkfsv)
	return map[string]interface{}{"message": "成功","code":"200"}
}

func (lkfs *LinkageFailureSucces)queryLinkageFailureSucces() []*LinkageFailureSucces{
	var lkfsList []*LinkageFailureSucces
	x.Find(&lkfsList)
	return lkfsList
}


